import request from '@/api/request'
/* 检索歌曲等 */
export const search = ({ limit, offset, type, keywords }) => request({ url: '/cloudsearch', params: { limit, offset, type, keywords }, method: 'get' })
/* 搜索建议 */
export const searchsuggest = ({ keywords }) => request({ url: `/search/multimatch=${keywords}`, method: 'get' })
// 热搜列表
export const hotsearch = () => request({ url: '/search/hot/detail', method: 'get' })
/* 搜索建议 */
export const getSuggest = ({ type, keywords }) => request({ url: '/search/suggest', params: { type, keywords } })
// // 搜索多重匹配
// export const getSearchMultimatch = ({ keywords, limit, offset, type }) => request({ url: '/cloudsearch', params: { keywords, limit, offset, type }, method: 'get' })